package com.example.tests;

import org.testng.Assert;
import org.testng.annotations.Test;

import com.example.fw.Contact;

public class TestContactCreation extends AddressbookTestBase{
	
	@Test
	public void testContactCreationWithValidData() {
		
		Contact contact = new Contact().setFirstName("case1").setLastName("case2");
		app.getContactHelper().createContact(contact);
		/*try {
			Thread.sleep(4000);
		} catch (InterruptedException e) {
			
			e.printStackTrace();
		}*/
		Contact createdContact = app.getContactHelper().getFirstContact();
		Assert.assertEquals(contact, createdContact);
		
	}

}
